package buru.server.netty.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: dagingaa
 * Date: 1/2/13
 * Time: 12:13 AM
 * To change this template use File | Settings | File Templates.
 */

@Path("/say")
public class HelloResource2 {
    @GET
    @Produces("text/plain")
    @Path("/hello")
    public String helloWorld() {
        System.err.println("REQUEST: /");
        return "Hello World ~~"+new Date();
    }

    @GET
    @Produces("application/json")
    @Path("/now")
    public String helloWorld1() {
        System.err.println("REQUEST: /");
        return System.currentTimeMillis() + "~~~~";
    }
}
